package com.ctshk.rpc.hotel.service.impl;

import com.ctshk.rpc.hotel.dto.HotelProductCostPriceDTO;
import com.ctshk.rpc.hotel.mapper.HotelProductCostMapper;
import com.ctshk.rpc.hotel.service.IHotelProductCostPriceService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *酒店成本价格表 服务实现类
 * </p>
 */
@DubboService
public class HotelProductCostPriceServiceImpl implements IHotelProductCostPriceService {

    @Autowired
    private HotelProductCostMapper hotelProductCostMapper;

    @Override
    public List<HotelProductCostPriceDTO> queryPrice(Long hotelProductId, LocalDate queryDate) {
        List<HotelProductCostPriceDTO> busProductCostPriceDTOList = hotelProductCostMapper.queryPrice(hotelProductId,queryDate);
        return busProductCostPriceDTOList;
    }
}
